//
//  TitleAndSwitchCell.m
//  WE
//
//  Created by iMacOne on 15/12/3.
//  Copyright © 2015年 UNOHACHA. All rights reserved.
//

#import "TitleAndSwitchCell.h"
#import "Size.h"
#import <Masonry.h>
@interface TitleAndSwitchCell ()
@property (nonatomic, strong)UILabel *titleLbl;

@end

@implementation TitleAndSwitchCell

- (id)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier
{
    self = [super initWithStyle:style reuseIdentifier:reuseIdentifier];
    if (self) {
        self.titleLbl = [UILabel new];
        _titleLbl.font = FONT(12);
        _titleLbl.text = @"允许该医生查看我的全部病例";
        _titleLbl.textColor = [UIColor grayColor];
        [self.contentView addSubview:_titleLbl];
        [_titleLbl mas_makeConstraints:^(MASConstraintMaker *make) {
            make.left.equalTo(self.contentView).offset(10);
            make.top.equalTo(self.contentView).offset(10);
            make.height.offset(20);
        }];
        self.switchBtn = [UISwitch new];
        [self.contentView addSubview:_switchBtn];
        [self.switchBtn mas_makeConstraints:^(MASConstraintMaker *make) {
           
            make.top.equalTo(self.contentView).offset(5 );
            make.right.equalTo(self.contentView.mas_right).offset(-20);
            make.height.offset(20);
        }];

        
    }
    return self;
}



@end
